package com.ffcs.web.model.entity;
// default package

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * UserBaogao entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wechat_user_baogao")
public class UserBaogao implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private Integer baogaoId;
	private Date addTime;
	private Integer pingguId;
	private Integer score;

	// Constructors

	/** default constructor */
	public UserBaogao() {
	}

	/** full constructor */
	public UserBaogao(Integer userId, Integer baogaoId, Date addTime,
			Integer pingguId, Integer score) {
		this.userId = userId;
		this.baogaoId = baogaoId;
		this.addTime = addTime;
		this.pingguId = pingguId;
		this.score = score;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userId", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "baogaoId", nullable = false)
	public Integer getBaogaoId() {
		return this.baogaoId;
	}

	public void setBaogaoId(Integer baogaoId) {
		this.baogaoId = baogaoId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "addTime", nullable = false, length = 19)
	public Date getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	@Column(name = "pingguId", nullable = false)
	public Integer getPingguId() {
		return this.pingguId;
	}

	public void setPingguId(Integer pingguId) {
		this.pingguId = pingguId;
	}

	@Column(name = "score", nullable = false)
	public Integer getScore() {
		return this.score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

}